package com.matt.controller.api.domin;

import com.matt.commons.model.Model;
import com.matt.domain.care.HLCareBaseRecord;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 紧急事件
 */
@Data
@Entity
@Table(name = "hl_thermometer")
@EqualsAndHashCode(callSuper = true)
public class Thermometer  extends Model {



    @Column(columnDefinition = "varchar(32)  COMMENT '园区ID'")
    public String areaId;
    @Column(columnDefinition = " varchar(1000) COMMENT '数据' ")
    private String thermometerData;
    @Column(columnDefinition = " varchar(50) COMMENT '湿度' ")
    private String humidity;

    @Column(columnDefinition = " varchar(1024) COMMENT '温度' ")
    private String temperature;

    @Column(columnDefinition = " varchar(50) COMMENT 'pm2_5' ")
    private String pm2_5;

    @Column(columnDefinition = " varchar(100) COMMENT 'co2' ")
    private String co2;
    @Column(columnDefinition = " varchar(100) COMMENT 'hcho' ")
    private String hcho;
    /**
     * 创建时间
     */
    @Column(columnDefinition = " datetime COMMENT 'create_time' ")
    private LocalDateTime createTime;

    @Column(columnDefinition = " bigint(20) COMMENT '设备id' ")
    private Long deviceId;
    @Column(columnDefinition = " varchar(100) COMMENT '设备名称' ")
    private String deviceName;

}
